package com.wx.app.mylib.view;

import android.content.Context;
import android.support.v7.app.AlertDialog;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;
import com.example.administrator.mylib.R;

/**
 * Created by Administrator on 2016/5/27.
 */
public class ProgressBarHor extends AlertDialog {
    private final TextView mMessageView;

    public ProgressBarHor(Context context, int theme) {
        super(context, theme);
        View view = LayoutInflater.from(getContext()).inflate(R.layout.progress_horizon, null);
        mMessageView = (TextView) view.findViewById(R.id.message);
        setView(view);
    }

    @Override
    public void setMessage(CharSequence message) {
        mMessageView.setText(message);
    }

}
